﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Glucometer.ModuleHandler
{
    class TestUnitConverter
    {
        public static int Convert(int value, TestUnit from, TestUnit to)
        {
            if (from == to) return value;
            return (to == TestUnit.DL) ? value * 18 : value / 18;            
        }
    }
}
